import request from '@/api/request.js'

//上传文件
export function uploadFilesApi(path) {
	return request.request({
		url: `api/wash/comm/upload`,
		method: 'POST',
		type: 'upload',
		filePath: path,
		name: 'file',
	})
}

//获取城市联动
export function getCityLinkageApiList(data) {
	return request.request({
		url: `api/wash/comm/getCity`,
		method: 'GET',
		data: data,
	})
}


//微信授权
export function wxAuthApi(data) {
	return request.request({
		url: `api/wechat/login`,
		method: 'POST',
		data: data,
	})
}

//获取手机号
export function wxAuthMobileApi(data) {
	return request.request({
		url: `api/wechat/getInfo`,
		method: 'POST',
		data: data,
	})
}

//首页接口
export function getHomeApiData(data) {
	return request.request({
		url: `api/wash/index/index`,
		method: 'GET',
		data: data,
	})
}

//商品列表
export function getWashGoodsHotApiDetail(data) {
	return request.request({
		url: `api/wash/goods/recommendGoods`,
		method: 'GET',
		data: data,
	})
}

//美容 -首页推荐
export function beautifyRecommendGoods(data) {
	return request.request({
		url: `api/beautify/index/recommendGoods`,
		method: 'GET',
		data: data,
	})
}

//驾考 -首页推荐
export function travelRecommendGoods(data) {
	return request.request({
		url: `api/travel/index/recommendGoods`,
		method: 'GET',
		data: data,
	})
}

//xmy -首页推荐
export function xmyRecommendGoods(data) {
	return request.request({
		url: `api/xmy/index/recommendGoods`,
		method: 'GET',
		data: data,
	})
}


//商品详情
export function getWashGoodsApiDetail(data) {
	return request.request({
		url: `api/wash/goods/detail`,
		method: 'GET',
		data: data,
	})
}

//美容-商品详情
export function beautifyDetail(data) {
	return request.request({
		url: `api/beautify/index/goodsDetail`,
		method: 'GET',
		data: data,
	})
}

//驾考-商品详情
export function travelDetail(data) {
	return request.request({
		url: `api/travel/index/goodsDetail`,
		method: 'GET',
		data: data,
	})
}

//xmy-商品详情
export function xmyDetail(data) {
	return request.request({
		url: `api/xmy/index/goodsDetail`,
		method: 'GET',
		data: data,
	})
}
// 渠道商品详情.
export function channelGoodsDetail(data) {
	return request.request({
		url: `api/wash/channel/goodsDetail`,
		method: 'GET',
		data: data,
	})
}

//协议 type类型:1=洗护协议,2=隐私协议
export function getAgreementApi(data) {
	return request.request({
		url: `api/wash/index/agreement`,
		method: 'GET',
		data: data,
	})
}

//时间配置
export function getTimeApiConf(data) {
	return request.request({
		url: `api/wash/index/getTimeSet`,
		method: 'GET',
		data: data,
	})
}

//时间配置
export function getPayApiSign(data) {
	return request.request({
		url: `api/wash/pay/getWashSign`,
		method: 'POST',
		data: data,
	})
}

//VIP价格表
export function getVipPriceApiList(data) {
	return request.request({
		url: `api/wash/vip/index`,
		method: 'GET',
		data: data,
	})
}

//VIP提交订单
export function getVipPriceApiSub(data) {
	return request.request({
		url: `api/wash/vip/subOrder`,
		method: 'POST',
		data: data,
	})
}

//VIP购买记录
export function getVipBuyApiList(data) {
	return request.request({
		url: `api/wash/vip/vipBuyList`,
		method: 'GET',
		data: data,
	})
}

//我的消息
export function getMsgApiList(data) {
	return request.request({
		url: `api/wash/index/message`,
		method: 'GET',
		data: data,
	})
}

//联系电话
export function getContactApi(data) {
	return request.request({
		url: `api/wash/index/contact`,
		method: 'GET',
		data: data,
	})
}

//城市合伙人背景图简介
export function getPartnerApiInfo(data) {
	return request.request({
		url: `api/wash/index/partner`,
		method: 'GET',
		data: data,
	})
}


//钱包余额
export function getBalance(data) {
	return request.request({
		url: `api/wash/index/getBalance`,
		method: 'GET',
		data: data,
	})
}
//提现
export function distribution(data) {
	return request.request({
		url: `api/wash/distribution/cash`,
		method: 'POST',
		data: data,
	})
}

//分类menu
export function getSysCategory(data) {
	return request.request({
		url: `api/wash/index/getSysCategory`,
		method: 'GET',
		data: data,
	})
}

//分类menu
export function getVideo(data) {
	return request.request({
		url: `api/wash/index/getVideo`,
		method: 'GET',
		data: data,
	})
}


//消息
export function noticeList(data) {
	return request.request({
		url: `api/wash/channel/notice`,
		method: 'GET',
		data: data,
	})
}
//消息
export function noticeDetail(data) {
	return request.request({
		url: `api/wash/channel/noticeDetail`,
		method: 'GET',
		data: data,
	})
}
//getCode
export function getCode(data) {
	return request.request({
		url: `api/wash/channel/getCode`,
		method: 'GET',
		data: data,
	})
}

export function giveSave(data) {
	return request.request({
		url: `api/wash/channel/giveSave`,
		method: 'POST',
		data: data,
	})
}
export function getSave(data) {
	return request.request({
		url: `api/wash/channel/getSave`,
		method: 'POST',
		data: data,
	})
}

export function getSignList(data) {
	return request.request({
		url: `api/wash/channel/getSignList`,
		method: 'GET',
		data: data,
	})
}


export function signSave(data) {
	return request.request({
		url: `api/wash/channel/signSave`,
		method: 'POST',
		data: data,
	})
}

